projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d6ecf
)
Make Topo! not crash on waypoints that don't contain a description.
author
robertl
<robertl>
Thu, 30 Jun 2005 17:33:38 +0000
(17:33 +0000)
committer
robertl
<robertl>
Thu, 30 Jun 2005 17:33:38 +0000
(17:33 +0000)
tpg.c
patch
|
blob
|
history
diff --git
a/tpg.c
b/tpg.c
index c30dec2554945b27c4aae90ffd811acf27afea30..b0ecaba802eb72a1d161b5efdc88b4607e990876 100644
(file)
--- a/
tpg.c
+++ b/
tpg.c
@@
-185,7
+185,8
@@
tpg_read(void)
stringsize = buff[0];
- tpg_fread(&buff[0], stringsize, 1, tpg_file_in);
+ if (stringsize)
+ tpg_fread(&buff[0], stringsize, 1, tpg_file_in);
buff[stringsize] = '\0';
wpt_tmp->description = xstrdup(buff);